package com.xdkj.commons.util;

public enum ResponseEnum {
    LOGINGSUCCESS(2000, "登录成功"),
    LOGINGFAILURE(2001, "登录失败"),
    QUERYSUCCESS(2002, "查询成功"),
    QUERYFAILURE(2003, "查询失败"),
    UPDATESUCCESS(2004, "修改成功"),
    UPDATEFAILURE(2005, "修改失败"),
    INSERTSUCCESS(2006, "添加成功"),
    INSERTFAILURE(2007, "添加失败"),
    DELETESUCCESS(2008, "删除成功"),
    DELETEFAILURE(2009, "删除失败");

    private Integer code;
    private String message;

    ResponseEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
